package com.eedi.framework.job.enums;

import com.eedi.framework.common.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * 任务日志的状态枚举
 *
 * @author liuyf
 */
@Getter
@AllArgsConstructor
@ToString
public enum OrgJobLogStatusEnum implements BaseEnum<Integer,String> {

    // 运行中
    RUNNING(0,"运行中"),
    // 成功
    SUCCESS(1,"运行成功"),
    // 失败
    FAILURE(2,"运行失败");

    /**
     * 状态
     */
    private final Integer code;
    /**
     * 状态
     */
    private final String desc;
    @Override
    public String title() {
        return "机构任务日志的状态";
    }
}
